package org.jeecg.modules.wlhy.hydriverbank.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.wlhy.hydriverbank.entity.HyDriverBank;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.wlhy.hyvehicle.entity.HyVehicle;

import java.util.List;

/**
 * @Description: 司机银行卡信息
 * @Author: jeecg-boot
 * @Date:   2020-12-14
 * @Version: V1.0
 */
public interface IHyDriverBankService extends IService<HyDriverBank> {

//    Result  saveDriverBank(HyDriverBank hyDriverBank);

    HyDriverBank getByBankNumAndDriverId(String driverId, String bankNum);
    List<HyDriverBank> getByDriverId(String driverId);
    HyDriverBank getDriverSelfBank(String driverId);//获得司机本人银行卡

    Result  unBundLing(String id);

    Result<?> addDriverBank(HyDriverBank hyDriverBank);

    Result<?> updateDriverBank(HyDriverBank hyDriverBank);

    int getDriverBankCountByDriverId(String driverId);

    Result<?> setDefault(HyDriverBank driverBank);

    List<HyDriverBank> getDriverBankByDriverId(String driverId);

    HyDriverBank getDefaultDriverBank(String driverId);

    int getBankNumsByDriverId(String driverId);

    HyDriverBank getDriverBankInfo(String id, String bankNum);

    IPage<HyDriverBank> pageList(Page<HyDriverBank> page, QueryWrapper<HyDriverBank> queryWrapper, String customerById);

}
